package cn.mccraft.uide.api.plugin;

import org.slf4j.Logger;

import com.typesafe.config.Config;

import cn.mccraft.uide.api.UIDEAPI;
import cn.mccraft.uide.api.util.i18n.I18n;
import ro.fortsoft.pf4j.Plugin;
import ro.fortsoft.pf4j.PluginWrapper;

public abstract class UIDEPlugin extends Plugin{

	public UIDEPlugin(PluginWrapper wrapper) {
		super(wrapper);
	}
	
	public Logger getLogger() {
		return log;
	}
	
	public String getLanguagePath() {
		return "lang/";
	}
	
	public I18n getLanguage() {
		return UIDEAPI.getPluginI18nManager().getI18n(getWrapper());
	}
	
	public Config getConfig() {
		return null; //TODO
	}
}
